package com.wwp.tbshop.accout_center.adapter;


import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Context;
import android.support.v13.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 6/17/2017.
 */

public class Login_register_Adapter extends FragmentPagerAdapter {


    private List<Fragment> mFragmentList;
    private Context mContext;


    public String[] mTitles = {"登录", "注册"};

    public void setFragmentList(List<Fragment> fragmentList, Context context) {
        mFragmentList = fragmentList;
        mContext = context;
    }

    public Login_register_Adapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return mTitles[position];
    }

    @Override
    public Fragment getItem(int position) {
        return mFragmentList.get(position);
    }

    @Override
    public int getCount() {
        return mFragmentList.size();
    }



}
